package com.RMP
{
    import flash.display.*;
    import flash.events.*;

    public class BookmarksMenu extends Sprite
    {
        var initShell:Boolean;
        var myXMLList:XMLList;
        var btnsArray:Array;
        var ellipseArray:Array;
        var navMenu:NavMenu;
        var fadeSpeed:Number;
        public var menuType:String;
        var label:String;
        public var currNavId:int;
        var myRoot:MovieClip;
        var rArrow:Sprite;
        var visBtnsArray:Array;
        var navItem:NavItem;
        var ellipse:NavItem;
        var lArrow:Sprite;

        public function BookmarksMenu(param1:MovieClip, param2:Number, param3:String, param4:String) : void
        {
            menuType = "BookmarksMenu";
            visible = false;
            alpha = 0;
            myRoot = param1;
            fadeSpeed = param2;
            this.name = param3;
            label = param4;
            trace("name " + name);
            myRoot.stage.addEventListener(Event.RESIZE, onResizer, false, 0, true);
            doResize();
            alpha = 1;
            return;
        }

        public function fadeOutShell() : void
        {
            visible = false;
            return;
        }

        function doResize() : void
        {
            return;
        }

        public function fadeInShellAuto(param1:int) : void
        {
            return;
        }

        function onResizer(event:Event)
        {
            doResize();
            return;
        }

        function switchColsAuto(param1:Number) : void
        {
            return;
        }

        function updateAddress() : void
        {
            switch(label)
            {
                case "Browse":
                {
                    myRoot.clickPathNames = ["bookmarks", "browse", myRoot.myBookmarksID];
                    myRoot.updateAddress("/" + "bookmarks" + "/" + "browse" + "/" + myRoot.myBookmarksID + "/");
                    break;
                }
                case "Share":
                {
                    myRoot.clickPathNames = ["bookmarks", "share"];
                    myRoot.updateAddress("/" + "bookmarks" + "/" + "share" + "/");
                    break;
                }
                case "Clear":
                {
                    myRoot.clickPathNames = ["bookmarks", "clear"];
                    myRoot.updateAddress("/" + "bookmarks" + "/" + "clear" + "/");
                    break;
                }
                case "Create New":
                {
                    myRoot.clickPathNames = ["bookmarks", "create-new"];
                    myRoot.updateAddress("/" + "bookmarks" + "/" + "create-new" + "/");
                    break;
                }
                case "Help":
                {
                    myRoot.clickPathNames = ["bookmarks", "help"];
                    myRoot.updateAddress("/" + "bookmarks" + "/" + "help" + "/");
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }

        public function fadeInShell() : void
        {
            visible = true;
            updateAddress();
            return;
        }

    }
}
